/**
 * Copyright (c) Enalean, 2017. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

& {
    padding: $navbar-height 0 0 0;

    &.widgetable {
        background: $main-background;
    }

    &.project-administration {
        background: $main-background;

        .content {
            padding: 0;
        }
    }

    > .wrapper {
        min-height: 100%;
        position: relative;
    }

    &.has-sidebar.sidebar-collapsed {
        .logo {
            width: $sidebar-width-collapsed;
            max-width: $sidebar-width-collapsed;
            background: $navbar-color url('../images/organization_logo_small.png') no-repeat center center;
        }

        .sidebar-nav {
            width: $sidebar-width-collapsed;

            .project-title-container,
            .sidebar-about {
                display: none;
            }

            li a {
                width: $sidebar-width-collapsed;
                font-size: 18px;

                & > span {
                    display: none;
                }
            }
        }

        .main {
            margin-left: $sidebar-width-collapsed;
        }
    }

    .main {
        margin: 0;
    }

    &.has-sidebar .main {
        margin: 0 0 0 $sidebar-width;
    }

    &.admin_register {
        #register-form form label .label-help {
            display: none;
        }

        #register-background {
            background-color: #FFF;
            background-image: none;
        }
    }

    &.register-page:not(.admin_register) {
        > .wrapper {
            background-color: #FBFBFB;
        }
    }

    &.register-page {
        .content {
            background-color: #FBFBFB;
            padding: 0;
        }
    }

    &.search-page {
        .navbar-search, .header_searchbox {
            display: none;
        }
    }

    &.search-page .main .content {
        padding: 0px;
    }

    &.mediawiki .main .content {
        padding: 0px;
    }

    &.account-maintenance .main .content {
        padding: 0px;

        h3.account-title {
            font-size: 1.2em;

            i.help-button {
                vertical-align: initial;
            }
        }
    }
}
